package com.imau.mapper;

import com.imau.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    /**在参数前面注解@Param("变量的别名")*/
    int delete(@Param("id") Integer id, @Param("userName") String userName);

    /**参数是对象类型*/
    int insertUser(User user);

    List<User> selectByName(@Param("userName") String userName);

    //[1,2,3]
    int deleteBatchById(@Param("ids") Integer ids[]);

}
